
<%@ page import="aqv.Politician" %>
<!DOCTYPE html>
<html>
	<head>
		<meta name="layout" content="aqvLayout1">
		<g:set var="entityName" value="${message(code: 'politician.label', default: 'Politician')}" />
		<title><g:message code="default.list.label" args="[entityName]" /></title>
	</head>
	<body>
		<div class="content">
			<div class="container_12">
				<div class="grid_12">
					<h3>Politicos</h3>
					<h5>El politico que buscas no esta?, <a href="${createLink(controller : 'Politician', action:'create')}">agregalo !!</a></h5>
				</div>
				<g:each in="${politicianInstanceList}" status="i" var="politicianInstance">
					<div class="grid_4">
						<div class="box">
							<div class="maxheight">
							
								<!--  here should be the image of the politician -->
<%--								<img src="images/page4_img1.jpg" alt="">--%>
								<img src=${resource(dir: '/images/politicians/'+politicianInstance.surName +'_' +politicianInstance.name+'/', file: politicianInstance.profilePic)} 
									width="330" height="300"/>
								<div class="text1 color2">
									<a href="${createLink(controller : 'Politician', action:'show', params: [id:politicianInstance.id])}">${fieldValue(bean: politicianInstance, field: "name")}</a>
								</div>
								${fieldValue(bean: politicianInstance, field: "description")}
								<br>
								<a href="${createLink(controller : 'Politician', action:'show', params: [id:politicianInstance.id])}" class="btn">Read More</a>
							</div>
						</div>
					</div>
				</g:each>
				<div class="clear"></div>
			</div>
		</div>
	</body>
</html>
